#ifndef _PLAYERS_H_
#define _PLAYERS_H_
#include "GameObject.h"
class Matting;
class Players :public GameObject
{
public:
	Players(QVector2D position,QVector2D scaleFactor,int deltaThreshold = 5);
	~Players();
	virtual void Render();
	virtual void Update(float fElapsedTime);
	void UpdateTexture();
	void BindTexture();
	void InitTexture();
private:
	QVector2D mPosition;
	QVector2D mScaleFactor;
	int  mDeltaThreshold;
	Matting  *mMatting;
	unsigned char *mTextureData;
	double matrixArray[9];
	void  ReadMatrixFromFile();
};
#endif